/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jili.ubert.code.client2server;

// Generated 2015-7-29 21:31:34 by Hibernate Tools 4.3.1

import com.baidu.bjf.remoting.protobuf.Codec;
import com.baidu.bjf.remoting.protobuf.ProtobufProxy;
import com.baidu.bjf.remoting.protobuf.annotation.Protobuf;
import java.io.IOException;
import java.util.Date;

/**
 * TradeNeworder generated by hbm2java
 */
public class NewOrder implements java.io.Serializable {

    @Protobuf
    private int orderId;
    private Date timeStamp;
    @Protobuf
    private String accountCode;
    @Protobuf
    private String dealerUserId;
    @Protobuf
    private String submitTimeStr;
    private Date submitTime;
    @Protobuf
    private String tradeDateStr;
    private Date tradeDate;
    @Protobuf
    private String dateTimeStr;
    private Date dateTime;
    @Protobuf
    private String mac;
    @Protobuf
    private Integer ip4;
    @Protobuf
    private String obj;
    @Protobuf
    private String marketCode;
    @Protobuf
    private String classCode;
    @Protobuf
    private String bs;
    @Protobuf
    private String openClose;
    @Protobuf
    private String priceType;
    @Protobuf
    private Float orderPrice;
    @Protobuf
    private Integer orderQty;
    @Protobuf
    private String hedgeFlag;
    @Protobuf
    private String posId;
    @Protobuf
    private String closeType;
    @Protobuf
    private Integer basketId;
    @Protobuf
    private Integer basketTatol;
    @Protobuf
    private Integer seqnum;
    @Protobuf
    private String ownUserId;
    @Protobuf
    private String alterUserId;
    private Date createTime;

    public NewOrder() {
    }

    public int getOrderId() {
        return this.orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public Date getTimeStamp() {
        return this.timeStamp;
    }

    public void setTimeStamp(Date timeStamp) {
        this.timeStamp = timeStamp;
    }

    public String getAccountCode() {
        return this.accountCode;
    }

    public void setAccountCode(String accountCode) {
        this.accountCode = accountCode;
    }

    public String getDealerUserId() {
        return this.dealerUserId;
    }

    public void setDealerUserId(String dealerUserId) {
        this.dealerUserId = dealerUserId;
    }

    public Date getSubmitTime() {
        return this.submitTime;
    }

    public void setSubmitTime(Date submitTime) {
        this.submitTime = submitTime;
    }

    public Date getTradeDate() {
        return this.tradeDate;
    }

    public void setTradeDate(Date tradeDate) {
        this.tradeDate = tradeDate;
    }

    public Date getDateTime() {
        return this.dateTime;
    }

    public void setDateTime(Date dateTime) {
        this.dateTime = dateTime;
    }

    public String getMac() {
        return this.mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public Integer getIp4() {
        return this.ip4;
    }

    public void setIp4(Integer ip4) {
        this.ip4 = ip4;
    }

    public String getObj() {
        return this.obj;
    }

    public void setObj(String obj) {
        this.obj = obj;
    }

    public String getMarketCode() {
        return this.marketCode;
    }

    public void setMarketCode(String marketCode) {
        this.marketCode = marketCode;
    }

    public String getClassCode() {
        return this.classCode;
    }

    public void setClassCode(String classCode) {
        this.classCode = classCode;
    }

    public String getBs() {
        return this.bs;
    }

    public void setBs(String bs) {
        this.bs = bs;
    }

    public String getOpenClose() {
        return this.openClose;
    }

    public void setOpenClose(String openClose) {
        this.openClose = openClose;
    }

    public String getPriceType() {
        return this.priceType;
    }

    public void setPriceType(String priceType) {
        this.priceType = priceType;
    }

    public Float getOrderPrice() {
        return this.orderPrice;
    }

    public void setOrderPrice(Float orderPrice) {
        this.orderPrice = orderPrice;
    }

    public Integer getOrderQty() {
        return this.orderQty;
    }

    public void setOrderQty(Integer orderQty) {
        this.orderQty = orderQty;
    }

    public String getHedgeFlag() {
        return this.hedgeFlag;
    }

    public void setHedgeFlag(String hedgeFlag) {
        this.hedgeFlag = hedgeFlag;
    }

    public String getPosId() {
        return this.posId;
    }

    public void setPosId(String posId) {
        this.posId = posId;
    }

    public String getCloseType() {
        return this.closeType;
    }

    public void setCloseType(String closeType) {
        this.closeType = closeType;
    }

    public Integer getBasketId() {
        return this.basketId;
    }

    public void setBasketId(Integer basketId) {
        this.basketId = basketId;
    }

    public Integer getBasketTatol() {
        return this.basketTatol;
    }

    public void setBasketTatol(Integer basketTatol) {
        this.basketTatol = basketTatol;
    }

    public Integer getSeqnum() {
        return this.seqnum;
    }

    public void setSeqnum(Integer seqnum) {
        this.seqnum = seqnum;
    }

    public String getOwnUserId() {
        return this.ownUserId;
    }

    public void setOwnUserId(String ownUserId) {
        this.ownUserId = ownUserId;
    }

    public String getAlterUserId() {
        return this.alterUserId;
    }

    public void setAlterUserId(String alterUserId) {
        this.alterUserId = alterUserId;
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    
    public byte[] EnCode(NewOrder msg) throws IOException {
        Codec<NewOrder> Lcode = ProtobufProxy.create(NewOrder.class);
        return Lcode.encode(msg);
    }

    public NewOrder DeCode(byte[] data) throws IOException {
        Codec<NewOrder> Lcode = ProtobufProxy.create(NewOrder.class);
        return Lcode.decode(data);
    }

    /**
     * @return the submitTimeStr
     */
    public String getSubmitTimeStr() {
        return submitTimeStr;
    }

    /**
     * @param submitTimeStr the submitTimeStr to set
     */
    public void setSubmitTimeStr(String submitTimeStr) {
        this.submitTimeStr = submitTimeStr;
    }

    /**
     * @return the tradeDateStr
     */
    public String getTradeDateStr() {
        return tradeDateStr;
    }

    /**
     * @param tradeDateStr the tradeDateStr to set
     */
    public void setTradeDateStr(String tradeDateStr) {
        this.tradeDateStr = tradeDateStr;
    }

    /**
     * @return the dateTimeStr
     */
    public String getDateTimeStr() {
        return dateTimeStr;
    }

    /**
     * @param dateTimeStr the dateTimeStr to set
     */
    public void setDateTimeStr(String dateTimeStr) {
        this.dateTimeStr = dateTimeStr;
    }
}
